﻿#region Imports
using System;
using System.Globalization;
using System.Windows.Data;
using PlayRandom.ViewModels;
#endregion Imports

namespace PlayRandom.Converters
{
    public class TimestampFormatConverter : IValueConverter
    {
        #region IValueConverter Members
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return Microsoft.VisualBasic.Strings.Right(MainViewModel.GetStartPos(value as string, eMediaPlayer.MPC), 5);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
        #endregion IValueConverter Members
    }
}
